<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePositionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('positions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('reference')->nullable();
            $table->string('position')->nullable();
            $table->string('type')->nullable();
            $table->string('startDate')->nullable();
            $table->string('monthlySalary')->nullable();
            $table->string('benefits', 255)->nullable();
            $table->string('reportTo')->nullable();
            $table->string('location')->nullable();
            $table->string('responsibility', 4000)->nullable();
            $table->string('requirements', 4000)->nullable();
            $table->boolean('expired')->nullable();
            $table->string('expiredTime')->nullable();
            $table->boolean('template')->nullable();
            $table->string('templateName')->nullable();
            $table->string('description', 3000)->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('positions');
    }
}
